package com.example.job;

import com.dangdang.ddframe.job.api.ShardingContext;
import com.dangdang.ddframe.job.api.simple.SimpleJob;
import lombok.extern.slf4j.Slf4j;

/**
 * @ClassName MySimpleJob
 * @Description TODO
 * @Author wyp
 * @Date 2023/8/15 13:54
 * @Version 1.0
 */
@Slf4j
public class MySimpleJob implements SimpleJob {
    @Override
    public void execute(ShardingContext shardingContext) {
        System.out.println("我是分片项:" + shardingContext.getShardingItem());
        log.info("我是分片项:" + shardingContext.getShardingItem());
    }
}
